import request from '@/utils/request'

// 列表 年检工单列表
export function getDataList(query) {
  return request({
    url: '/car/carWorkOrder/inspection/list',
    method: 'get',
    params: query
  })
}
// 年检车辆基础信息(query:workList)
export function feedbackList(data) {
  return request({
    url: '/car/carInspection/feedback/list',
    method: 'post',
    data:data
  })
}
// 查询年检信息详情 单独处理
export function getInspectionDetails(id) {
  return request({
    url: '/car/carInspection/'+id,
    method: 'get'
  })
}
// 查询年检信息详情 批量处理
export function getInspectionLists(data) {
  return request({
    url: '/car/carInspection/getList',
    method: 'post',
    data:data
  })
}
// 查询年检信息详情 批量处理校验
export function checkInspection(data) {
  return request({
    url: '/car/carInspection/checkInspection',
    method: 'post',
    data:data
  })
}

// 顶部
export function getTabsCount(query) {
  return request({
    url: '/car/carInspection/tabsCount',
    method: 'get',
    params: query
  })
}



// 编辑
export function updateInspection(data) {
  return request({
    url: '/car/carInspection',
    method: 'put',
    data: data
  })
}
// 删除
export function delInspection(id) {
  return request({
    url: '/car/carInspection/' + id,
    method: 'delete'
  })
}

// 新增

export function addInspection(data) {
  return request({
    url: '/car/carInspection',
    method: 'post',
    data: data
  })
}
